package command

import (
	"fmt"
	"github.com/spf13/cobra"
)

func VersionCommand(name string, version string) *cobra.Command {
	command := &cobra.Command{
		Use:   "version",
		Short: "查询版本信息",
		Long: `查询版本信息`,
		Example: "geekros version",
		Run: func(cmd *cobra.Command, args []string) {
			fmt.Println(name + " " + version)
		},
	}
	return command
}
